package net.xdclasss.demo_project.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class VideoOrderTask {

    @Scheduled(cron = "0 39 15 ? * MON-FRI")
    // @Scheduled(fixedRate = 2000)
    public void sum(){
        System.out.println(LocalDateTime.now()+" 当前交易额："+Math.random());
    }

}
